/**
 * Constants of the UOM
 * 
 * @author remo.lemma@lu.unisi.ch and patrick.zulian@lu.unisi.ch
 */

package ch.unisi.inf.projects.java.uom;

public enum Constants {

	/** Quit command */
	QUITCOMMAND("Quit"),
	
	/** Default type for table's columns */
	DB_DEFAULT_TYPE("VARCHAR(255)"),
	/** Character that divides type from name (in columns) */
	ITEM_PARSECHAR("_"),
	/** Class/Type for Strings */
	ITEM_CLASS_STRING("STRING"),
	/** Class/Type for Lists (generic) */
	ITEM_CLASS_LIST("LIST"),
	/** Prefix for ItemClass tables */ 
	ITEM_TABLE_PREFIX("class"),
	/** Primary key for each table */
	ITEM_PRIMARY_KEY("UOMID"),
	/** New keyword for created and cached items */
	ITEM_NEW("NEW"),
	/** The category field for all items */
	ITEM_CATEGORY_FIELD("CATEGORY"),
	/** The has preview field for all items */
	ITEM_HASPREVIEW_FIELD("HAS MULTIMEDIA"),
	/** The regular expressions allowed for the Users to name categories and fields */
	REGEX("[a-zA-Z0-9 ]+");
	
	
	/** Value for the enum */
	private String value;
	
	/**
	 * Constructs the enum
	 * @param value the value to be assumed
	 */
	Constants (String value)
	{
		this.value = value;
	}
	
	/**
	 * Returns the value
	 * @return the value
	 */
	public String value()
	{
		return this.value;
	}
}
